package com.jhx.video.publish

import android.os.Bundle
import android.os.Handler
import android.text.TextUtils
import android.view.View
import com.jhx.common.framework.QuickBaseActivity
import com.jhx.common.model.Video
import com.jhx.common.thirdparty.db.DBHelper
import com.jhx.common.widget.CommonDialog
import com.jhx.video.R

/**
 * 发布页面
 *
 * @author Jack 2018-03-08 22:18
 */
class VideoPublishActivity : QuickBaseActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_home)
        val bundle = Bundle()
        bundle.putInt(VideoPublishFragment.KEY_FROM, intent.getIntExtra(VideoPublishFragment.KEY_FROM, 0))
        bundle.putSerializable(VideoPublishFragment.VIDEO_DATA, intent.getSerializableExtra(VideoPublishFragment.VIDEO_DATA))
        push(VideoPublishFragment::class.java, bundle)
    }

    override fun containerId(): Int {
        return R.id.view_container
    }

    override fun showToolbar(): Boolean {
        return false
    }
}